﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFCTP.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                EFServiceClient client = new EFServiceClient("industryservice");
                Product p = client.GetProductByKey("11");
                Console.WriteLine(p.Code + " " + p.Name);
                //List<Industry> industries = client.GetIndustryLevelOne();
                //industries.ForEach(s =>
                //{
                //    Console.WriteLine("Code:{0}\tName:{1}", s.Code, s.Name);
                //});
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            Console.WriteLine("完成");
            Console.ReadKey();
        }
    }
}
